package com.cheetah.cloud2020.web;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.cheetah.cloud2020.entity.SystemAdmin;
import com.cheetah.cloud2020.mapper.SystemAdminMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/admin/user")
public class SystemAdminController {

    @Autowired
    SystemAdminMapper systemAdminMapper;

    @RequestMapping("/list")
    public List<SystemAdmin> list() {
        return this.systemAdminMapper.selectList(new QueryWrapper<>());
    }
}
